package hub

import "strings"

const (
	ready  = "ready"
	chat   = "chat"
	system = "system"
	Chess  = "chess"
)

func HandleMessageType(s string) (ty string) {
	strS := strings.SplitN(s, "-", 2)
	return strS[0]
}

func MessageContext(s string) (val string) {
	strS := strings.SplitN(s, "-", 2)
	return strS[1]
}
